import request from '@/utils/request'

export function getAttribute() {
    return request({
        url: `/api/productAttribute/list`,
        method: 'GET'
    });
};


export function createAttribute(query) {
    return request({
        url: "/api/productAttribute/add",
        method: "POST",
        // params: info,
        data: query
    })
}

export function updateAttribute(id, query) {
    return request({
        url: `/api/productAttribute/update/${id}`,
        method: "POST",
        data: query
    })
}

export function detailAttribute() {
    return request({

    })
}

export function infoAttribute(id) {
    return request({
        url: `/api/productAttribute/${id}`,
        method: "GET"
    })
}

export function deleteAttribute(id) {
    return request({
        url: `/api/productAttribute/remove/${id}`,
        method: "GET"
    })
}